<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        form {
            /* display: flex; */
        }

        .input {
            width: 320px;
            height: 32px;
            margin: 8px 5px;
        }

        .verify_img {
            margin: 0px 5px;
        }
    </style>
</head>
<body>
    <h2>随机验证码</h2>
    <form action="/auth/login" method="post" enctype="application/x-www-form-urlencoded">
        <div>
            <input type="text" name='username' class="input" />
        </div>
        <div>
            <input type="text" name='password' class="input" />
        </div>
        <div>
            <input type="text" name='code' class="input" />
            <img class="verify_img" src="/auth/authcode" title="看不清？点击刷新"
                onclick="javascript:this.src='/auth/authcode?t='+Math.random()"> //点击再次生成新的验证码
        </div>

        <button type="submit">提交</button>
    </form>
</body>
</html>
